 {block name="body"}
<link rel="shortcut icon" href="favicon.ico">
<link href="__CSS__/bootstrap.min.css" rel="stylesheet">
<link href="__CSS__/font-awesome.min.css" rel="stylesheet">
<link href="__CSS__/animate.min.css" rel="stylesheet">
<link href="__CSS__/style.min.css" rel="stylesheet">
<link href="__CSS__/admin.css" rel="stylesheet">
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-group" style="padding-left: 20px;">
				<span>单号：</span>  {$info.sn}
				{if $info.stocktype==1}
				<span>入库类型：</span>采购入库
				{elseif $info.stocktype==2}
				<span>入库类型：</span>其他入库
		       	{elseif $info.stocktype==3}
				<span>出库类型：</span>销售出库
				{elseif $info.stocktype==4}
				<span>出库类型：</span>其他出库
				{/if}
				<span>日期：</span>  {$info.add_time}
				<span>制单人：</span>  {$info.czy}
			</div>		
		<div class="hr-line-dashed"></div>
		<table class="table table-bordered table-hover">
			<thead>
				<tr class="long-th">
					<th>商品名称</th>
					{if $type==1}
					<th>入库数量</th>
					{elseif $type==2}
					<th>出库数量</th>
					{/if}
					<th>备注</th>
				</tr>
			</thead>
			<tbody>
				{volist name="goodslist" id="vo"}
				<tr>
					<td class="text-center">{$vo.goods_name}</td>
					<td class="text-center">{$vo.stock}</td>
					<td class="text-center">{$vo.comment}</td>
				</tr>
				{/volist}
			</tbody>
		</table>
		<div class="form-group">
			<label class="col-sm-2 control-label">备注：</label>
			<div class="input-group col-sm-4">
				<textarea id="comments" name="comments" rows="3" style="width: 300px;" placeholder="备注">{$info.comments}</textarea>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">经办人：</label>
			<div class="input-group col-sm-4">
				<input type="text" id="jbrname" name="jbrname"  value="{$info.jbrname}" placeholder="经办人" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-4 col-sm-offset-8" style="text-align: right;">	
				<span onclick="wclose()"><a class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a></span>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/jquery.metisMenu.js"></script>
<script src="__JS__/jquery.slimscroll.min.js"></script>
<script src="__LIB__/layer/layer.js"></script>
<script src="__JS__/core.min.js"></script>
<script src="__JS__/pace.min.js"></script>
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__LIB__/ueditor/ueditor.all.js" type="text/javascript"></script>
<script>
	function wclose(){
    	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
        parent.layer.close(index);  
	}
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}